package com.zxb.promote.com.zxb.promote.service;
import com.zxb.promote.com.zxb.promote.entity.User;
import com.zxb.promote.com.zxb.promote.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
 * @Package: com.zxb.promote.com.zxb.promote.service
 * @ClassName: UserService
 * @Author: zhangxubin
 * @Description: 用户逻辑层
 * @Date: 2019/5/16 15:47
 */
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public List<User> selectByUsetAll(User user){
       return  userMapper.selectAllUser(user);
    }

    public User selectUserByName(String name){
        return userMapper.selectUserByName(name);
    }

}
